

function AbstractError(message, detail){

	//打印当前的堆栈信息 new AbstractError('test err').stack
	Error.captureStackTrace(this, this);
	this.message = message||'';
	if(detail){
		this.detail = detail;
	}

}
AbstractError.prototype.code = '未知代码';
module.exports = AbstractError;


// console.log(new AbstractError('test err').stack)



